import { defineConfig } from 'vitepress'
import { sideBarObj, navList } from './sideBarObj'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "个人笔记",
  description: "个人笔记",
  base: '/zm-docs/',
  head: [['link', { rel: 'icon', href: '/zm-docs/favicon.ico', id: 'faviconId' }]],
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    // nav: [
    //   { text: 'Home', link: '/' },
    //   { text: 'Examples', link: '/markdown-examples' }
    // ],

    // sidebar: [
    //   {
    //     text: 'Examples',
    //     items: [
    //       { text: 'Markdown Examples', link: '/markdown-examples' },
    //       { text: 'Runtime API Examples', link: '/api-examples' }
    //     ]
    //   },

    logo: { src: '/logo.svg', width: 24, height: 24 },

    nav: navList,

    sidebar: sideBarObj,

    search: {
      provider: 'local'
    },

    lastUpdated: {},

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  },

  vite: {
    server: {
      host: 'localhost',
      port: 8484
    }
  }
})
